package cn.com.backstage.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import cn.com.api.service.ApiT_memberService;
import cn.com.api.service.ApiT_member_partnerService;

import cn.com.util.*;

/*
 * 自媒体认证控制器
 */
@Controller
@RequestMapping(Utils.SYS_BACKSTAGE + "/")
public class T_member_partnerController {

	private static Logger logger = Logger.getLogger(T_member_partnerController.class);

	@Autowired
	private ApiT_member_partnerService apiT_member_partnerService;
	// @Autowired
	// private ApiT_memberService apiT_memberService;

	/**
	 * 合伙人列表
	 * 
	 * @return
	 */
	@RequestMapping(value = "member_partner-list")
	public ModelAndView member_partner_list(HttpServletRequest request, HttpServletResponse response, PageInfo pageInfo)
			throws Exception {
		ModelAndView mv = new ModelAndView("forward:/backstage/t_member_partner_list.jsp");

		Map<String, Object> conditions = new HashMap<String, Object>();
		List<Map<String, Object>> t_members = apiT_member_partnerService.findMember_partnersByMap(conditions);

		mv.addObject("member_partners", t_members);
		//
		return mv;
	}
}
